﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DreamWork.Model.ViewModel
{
    public class APIResult<T>
    {
        private string _message;

        public bool IsSuccess { get; set; }
        public virtual string ErrorCode { get; set; }
        public virtual string Message { get => string.IsNullOrEmpty(_message)?ErrorCode:_message; set => _message = value; }
        public T Content { get; set; }
    }
}
